package cn.edu.ujn.booksshop.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.edu.ujn.booksshop.dao.Book;

public interface BookMapper {
    int deleteByPrimaryKey(Integer bookid);

    int insert(Book row);

    int insertSelective(Book row);

    Book selectByPrimaryKey(Integer bookid);

    int updateByPrimaryKeySelective(Book row);

    int updateByPrimaryKey(Book row);
    
    //bookMangment.jsp查找所有book
    List<Book> selectAll(@Param("page") Integer page,@Param("rows") Integer rows);
    //
    Integer selectCount();
}